﻿@model RedSand.Site.Models.UserInfo
           
@*<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>*@
<div class="dialog" style="width:575px" title="Thay đổi thông tin tài khoản" >
    @using (Ajax.BeginForm(AdminAjaxOptions.UpdateRecord))
    {
        <div class="dialog-content">
            <div class="form-cell">
                @Html.HiddenFor(model => model.UserID)
                @Html.HiddenFor(model => model.Password)
                @Html.HiddenFor(model => model.JoinDate)
                @Html.LabelFor(model => model.Username)
                @Html.EditorFor(model => model.Username)
            </div>
            <div class="form-cell">
                @Html.LabelFor(model => model.Fullname)
                @Html.EditorFor(model => model.Fullname)
            </div>
            <div class="form-cell">
                @Html.LabelFor(model => model.Email)
                @Html.EditorFor(model => model.Email)
            </div>
            <div class="clr"></div>
            <div class="clr cell">
                <label>
                    Nhóm quyền</label>
                <div class="input" style="height: auto">
                    @Html.Action("GetRoleForUser", "Role", new { UserID = Model.UserID, enable = true })
                </div>
            </div>
            <div class="form-cell">
                @Html.LabelFor(model => model.Status)
                @Html.DropDownListFor(model => model.Status, DropDownListHelper.GetStatusList(false))
            </div>
        <div class="clr"></div>
        </div>
        <div class="dialog-footer">
            <input type="submit" value="Save" />
            <input type="button" value="Cancel" onclick="closeDialog('.dialog')" />
           
        </div>
    }
</div>
